<?php
	$file_name = $_FILES[ "file" ][ "name" ];
	$temp_file_name = $_FILES[ "file" ][ "tmp_name" ]; 
	$upload_path = "./uploads/".$_FILES[ "file" ][ "name" ];
	if( is_uploaded_file( $temp_file_name ) ){
		if( !move_uploaded_file( $temp_file_name, $upload_path ) ){
			echo("Problem : Could not move file to destination directory" );
			exit();
		}else{
			echo("Success ".$upload_path );
		}		
	}else{
		echo("Problem : posible file upload attack. File name : ".$file_name);
	}
?>
